package com.party.core.model.mall;

/**
 * @Description:
 * @Author: yangshoukun
 * @Date: 2018/5/23 9:20
 */
public class MallDataCountWithMember extends MallDataCount {

    private static final long serialVersionUID = 2004965581727948738L;

    // 机构名称
    private String partnerName;

    public String getPartnerName() {
        return partnerName;
    }

    public void setPartnerName(String partnerName) {
        this.partnerName = partnerName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof MallDataCountWithMember)) return false;
        if (!super.equals(o)) return false;

        MallDataCountWithMember that = (MallDataCountWithMember) o;

        return partnerName != null ? partnerName.equals(that.partnerName) : that.partnerName == null;
    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (partnerName != null ? partnerName.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "MallDataCountWithMember{" +
                "partnerName='" + partnerName + '\'' +
                '}';
    }
}
